import request from '@/utils/request'

// 查询端午抽签活动配置列表
export function listLuckDraw(query) {
  return request({
    url: '/business/luckDraw/list',
    method: 'get',
    params: query
  })
}

// 查询端午抽签活动配置详细
export function getLuckDraw(id) {
  return request({
    url: '/business/luckDraw/' + id,
    method: 'get'
  })
}

// 新增端午抽签活动配置
export function addLuckDraw(data) {
  return request({
    url: '/business/luckDraw',
    method: 'post',
    data: data
  })
}

// 修改端午抽签活动配置
export function updateLuckDraw(data) {
  return request({
    url: '/business/luckDraw',
    method: 'put',
    data: data
  })
}

// 删除端午抽签活动配置
export function delLuckDraw(id) {
  return request({
    url: '/business/luckDraw/' + id,
    method: 'delete'
  })
}
